<template>
  <div id="app">
    <router-view />
    <div id="sub-vue"></div>
  </div>
</template>

<script setup>
import { useRoute, useRouter } from "vue-router";

const route = useRoute();
const router = useRouter();

route.path === "/" && router.replace("/home");
</script>

<style scoped></style>
